// 短信
const route = {
  path: '/sms',
  redirect: '/sms/index',
  meta: {
    roles: ['sms'],
    title: '短信',
    icon: 'duanxin-weixuan',
    activeIcon: 'duanxin-xuanzhong',
    group: 'app'
  },
  component: () => import(/* webpackChunkName: "main-index" */ '@views/index.vue'),
  children: [
    {
      path: 'index',
      name: 'sms',
      meta: {
        roles: ['sms']
      },
      component: () => import(/* webpackChunkName: "shortMessage" */ '@/views/shortMessage/index.vue'),
      children: [
        {
          meta: {
            roles: ['sms_record'],
            title: '短信记录',
            group: 'short_message_data'
          },
          path: 'sms_record',
          name: 'smsRecord',
          component: () => import(/* webpackChunkName: "shortMessageRecord" */ '@/views/shortMessage/record/index.vue')
        },
        {
          meta: {
            roles: ['sms_config_sign'],
            title: '签名管理',
            group: 'short_message_config'
          },
          path: 'sms_config_sign',
          name: 'smsConfigSign',
          component: () => import(/* webpackChunkName: "shortMessageAutograph" */ '@/views/shortMessage/autograph/index.vue')
        },
        {
          meta: {
            roles: ['sms_config_tmpl'],
            title: '模板管理',
            group: 'short_message_config'
          },
          path: 'sms_config_tmpl',
          name: 'smsConfigTmpl',
          component: () => import(/* webpackChunkName: "shortMessageTemplet" */ '@/views/shortMessage/templet/index.vue')
        }
      ]
    }
  ]
}

export default route
